@echo off

:: Get file name.
set text="%1"
set tmp=""
:LOOP
for /f "delims=/, tokens=1,*" %%i in (%text%) do (
    set tmp=%%i
    set text="%%j"
    goto LOOP
)

:: Download files.
if exist %2%tmp% goto EXIT
    echo "download file:" %1
    wget -P %2 %1
:EXIT